package com.pfzy.utildemo.api;

import com.alibaba.fastjson.JSONObject;
import com.pfzy.lib.net.BaseEntity;

import io.reactivex.Observable;

public class ApiHelper {
    /**
     * 七牛云
     */
    public Observable<BaseEntity<JSONObject>> getQiniuToken() {
        return ApiBuilder.getInstance().getmAPI().getQiniuToken();
    }

//    private String TAG = "ApiHelper";
//    private Api mApiService;
//
//    protected  <T> Observable<T> BaseObserver(Observable<T> observable){
//        return observable
//                .subscribeOn(Schedulers.io())
//                .unsubscribeOn(Schedulers.io())
//                .subscribeOn(AndroidSchedulers.mainThread())
//                .observeOn(AndroidSchedulers.mainThread());
//    }
}
